﻿using Domain.Entity.Basic_information;
using Domain.Entity.System_operation;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.Basic_information
{
    public class address_mentConfiger : IEntityTypeConfiguration<Address_ment>
    {
        public void Configure(EntityTypeBuilder<Address_ment> builder)
        {
            builder.ToTable(nameof(Address_ment));
            builder.HasKey(e => e.Ar_id);
            builder.Property(e => e.Ar_id).HasColumnType("bigint");
            builder.Property(e => e.Ar_type).HasColumnType("int");
            builder.Property(e => e.Ar_client).HasColumnType("varchar(30)");
            builder.Property(e => e.Ar_contact).HasColumnType("varchar(30)");
            builder.Property(e => e.Ar_phone).HasColumnType("varchar(11)");
            builder.Property(e => e.Ar_postcode).HasColumnType("varchar(30)");
            builder.Property(e => e.Ar_region).HasColumnType("varchar(30)");
            builder.Property(e => e.Ar_adrs).HasColumnType("varchar(64)");
            builder.Property(e => e.Ar_remarks).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_time).HasColumnType("DateTime");
            builder.Property(e => e.Is_del).HasColumnType("tinyint").IsRequired().HasComment("删除状态：0、已删除 1、未删除");
            builder.Property(e => e.Update_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Update_time).HasColumnType("DateTime");
        }
    }
}
